from page.base_page import Basepage
from appium.webdriver.common.appiumby import AppiumBy as by
from page.mypage import Mypage
import time


class Main(Basepage):
    def __init__(self, driver):
        super().__init__(driver)

    def go_to_mypage(self):
        self.wait_for_clickable('Main', 'go_to_mypage', 15)
        self.find_and_click('Main', 'go_to_mypage')
        return Mypage(self.driver)


